<?php
namespace app\common\model;

use think\Model;
use think\Session;


class StoreLink extends Model
{
	protected $insert = ['create_time','create_man'];

	protected function setCreateTimeAttr()
	{
		return date('Y-m-d H:i:s');
	}

    protected function setCreateManAttr($value)
    {
        return $value ? $value : Session::get('admin_name');
    }

}